Caption = "Windows Information Viewer - By Chong Long Choo"
ClientHeight = 8205
ClientLeft = 45
ClientTop = 330
ClientWidth = 6780
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 547
ScaleMode = 3 'Pixel
ScaleWidth = 452
StartUpPosition = 2 'CenterScreen
Begin VB.ListBox lstOwnedWin
ForeColor = &H00FF0000&
Height = 450
Left = 120
TabIndex = 13
TabStop = 0 'False
Top = 2880
Width = 6555
End
Begin VB.ListBox lstChildWin
ForeColor = &H00FF0000&
Height = 645
Left = 120
TabIndex = 11
TabStop = 0 'False
Top = 1800
Width = 6555
End
Begin VB.CommandButton cmdRefresh
Caption = "Refresh"
Height = 375
Left = 120
TabIndex = 9
Top = 7680
Width = 1935
End
Begin VB.ListBox lstTopLevelWin
ForeColor = &H00FF0000&
Height = 1035
Left = 120
TabIndex = 3
TabStop = 0 'False
Top = 360
Width = 6555
End
Begin VB.ListBox ListInfo
ForeColor = &H00FF0000&
Height = 840
Index = 0
Left = 4560
TabIndex = 2
TabStop = 0 'False
Top = 3720
Width = 2175
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
ForeColor = &H00FF0000&
Height = 285
Index = 0
Left = 1920
Locked = -1 'True
TabIndex = 1
TabStop = 0 'False
Top = 3480
Visible = 0 'False
Width = 1815
End
Begin VB.CommandButton cmdTrack
Caption = "Start Tracking"
Height = 375
Left = 2160
TabIndex = 0
Top = 7680
Width = 1935
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 50
Left = 2400
Top = 4080
End
Begin VB.Label Label4
Height = 255
Left = 120
TabIndex = 12
Top = 2520
Width = 5055
WordWrap = -1 'True
End
Begin VB.Label Label3
Height = 255
Left = 120
TabIndex = 10
Top = 1440
Width = 5055
WordWrap = -1 'True
End
Begin VB.Label Label5
Caption = "CLASS"
Height = 255
Index = 2
Left = 3600
TabIndex = 8
Top = 120
Width = 1215
End
Begin VB.Label Label5
Caption = "BASE"
Height = 255
Index = 1
Left = 1440
TabIndex = 7
Top = 120
Width = 1215
End
Begin VB.Label Label5
Caption = "HWND"
Height = 255
Index = 0
Left = 120
TabIndex = 6
Top = 120
Width = 1215
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "Class Info:"
Height = 195
Index = 0
Left = 4560
TabIndex = 5
Top = 3480
Visible = 0 'False
Width = 735
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "&Hwnd:"
Height = 195
Index = 0
Left = 240
TabIndex = 4
Top = 3480
Visible = 0 'False
Width = 465
End
Attribute VB_Name = "frmWinView"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
' Name: Windows Information Viewer
' Author: Chong Long Choo
' Date: 06 September 1999
Private Type POINTAPI
x As Long
y As Long
End Type
Private objWinView As clsWinView
Attribute objWinView.VB_VarHelpID = -1
Private Declare Function SendMessageLongByRef Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, lParam As Long) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Declare Function GetDesktopWindow Lib "user32" () As Long
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Declare Function GetDeviceCaps Lib "gdi32" (ByVal hdc As Long, ByVal nIndex As Long) As Long